#ifndef 	__RN8209_H__
#define		__RN8209_H__

#include "stm32f7xx_hal.h"
#include "spi.h"
#include "stdio.h"



#define RA    	750
#define RB    	750.91
#define RC    	750.91
#define RD    	0.91

#define Rbat    1.500910
#define Rbus		1.800910		//k





void bspRn8209RegInitial(void);

void rn8209LogicEntry(void);


//Amplify the current value by 1000 times.  unit  mA
uint32_t getAgunBusCurrent(void);

//Amplify the current value by 1000 times.  unit  mV
uint32_t getAgunBusVoltage(void);

//Amplify the current value by 1000 times.  unit  mV
uint32_t getAgunBatVoltage(void);

//Amplify the current value by 1000 times.  unit  mV
uint32_t getAgunBatIsoVoltage(void);


//Amplify the current value by 1000 times.  unit  mA
uint32_t getBgunBusCurrent(void);
//Amplify the current value by 1000 times.  unit  mV
uint32_t getBgunBusVoltage(void);

//Amplify the current value by 1000 times.  unit  mV
uint32_t getBgunBatVoltage(void);

//Amplify the current value by 1000 times.  unit  mV
uint32_t getBgunBatIsoVoltage(void);



#endif  //__RN8209_H__





